use actix_web::web;

use crate::{
    database::{table, DbPool},
    route::form::menu::{MenuForm, NewMenuForm},
    service::ServiceError,
    srv_add, srv_del, srv_get_all, srv_upd,
};

srv_get_all!(get_all, MenuForm, table::menu::crud::read_count_from_offset);

srv_add!(add, NewMenuForm, table::menu::crud::create);
srv_upd!(upd, MenuForm, table::menu::crud::update);
srv_del!(del, table::menu::crud::delete);
